10. Internet Service Commands > 10.14 Examples of how to Configure and Use Internet Service Profiles > 10.14.2 Configuring Socket Listener

10.14.2
The example assumes that a connection profile has been created as explained in Section 10.1.1 or Section 10.1.2. Keep in mind that if the host is configured as listener another service profile must be left free to be dynam­ically assigned as Server when the listener receives a connection request from a remote client.

Configure the service profile 4 for use as Socket listener:
 
The host specifies its local port 65534 to be used for the Socket listener service. The local IP address will be dynamically assigned when the service is opened with AT^SISO.
Open the Socket service and query the IP address dynamically assigned to the Socket listener:
 
Query the current status of services. All service pro­files are unused, except for service profile 4 which is running in listener mode, where <srvState>=3 (lis­tening) and <socketState>=3 (LISTENER). The response also indicates the IP address dynamically assigned to the listener.